From: Sebastian Keller Date: Sat, 11 Nov 2023 21:36:02 +0000 (+0100) Subject: searchController: Use ClutterText::cursor_position instead of position X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~310 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ee5819f870b73125d4ab777867ab92dc04f79ce0;p=gnome-shell.git searchController: Use ClutterText::cursor_position instead of position The deprecated position property has been removed in mutter commit 31849868 in favor of the otherwise identical cursor_position property. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7186 Part-of: --- diff --git a/js/ui/searchController.js b/js/ui/searchController.js index 25b53e6e1..53a8cb863 100644 --- a/js/ui/searchController.js +++ b/js/ui/searchController.js @@ -292,7 +292,7 @@ export const SearchController = GObject.registerClass({ } else if (symbol === Clutter.KEY_Down) { this._searchResults.navigateFocus(St.DirectionType.DOWN); return Clutter.EVENT_STOP; - } else if (symbol === arrowNext && this._text.position === -1) { + } else if (symbol === arrowNext && this._text.cursor_position === -1) { this._searchResults.navigateFocus(nextDirection); return Clutter.EVENT_STOP; } else if (symbol === Clutter.KEY_Return || symbol === Clutter.KEY_KP_Enter) {